package model

import "time"

type DomainConf struct {
	ID           int64     `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
	DomainValue  string    `gorm:"column:domain_value" json:"domain_value"`
	Protocol     string    `gorm:"column:protocol" json:"protocol"`
	DomainStatus int16     `gorm:"column:domain_status" json:"domain_status"`
	CreateTime   time.Time `gorm:"column:create_time;autoCreateTime" json:"create_time"`
	EditTime     time.Time `gorm:"column:edit_time;autoUpdateTime" json:"edit_time"`
	Creator      string    `gorm:"column:creator" json:"creator"`
	Editor       string    `gorm:"column:editor" json:"editor"`
	Deleted      int16     `gorm:"column:deleted" json:"deleted"`
	Version      int64     `gorm:"column:version" json:"version"`
}

func (DomainConf) TableName() string {
	return "domain_conf"
}
